3.15 \(\int \frac{x^3 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx\)

Optimal. Leaf size=718 \[ -\frac{\left (-\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{b-\sqrt{b^2-4 a c}}+\left (b-\sqrt{b^2-4 a c}\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{\sqrt{b^2-4 a c}+b}+\left (\sqrt{b^2-4 a c}+b\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{\left (-\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (\sqrt [3]{b-\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (\sqrt [3]{\sqrt{b^2-4 a c}+b}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}-\frac{\left (-\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b-\sqrt{b^2-4 a c}}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{\sqrt{b^2-4 a c}+b}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{e x}{c} \]

[Out]

(e*x)/c - ((c*d - b*e - (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*ArcTan[(1 -
 (2*2^(1/3)*c^(1/3)*x)/(b - Sqrt[b^2 - 4*a*c])^(1/3))/Sqrt[3]])/(2^(1/3)*Sqrt[3]
*c^(4/3)*(b - Sqrt[b^2 - 4*a*c])^(2/3)) - ((c*d - b*e + (b*c*d - b^2*e + 2*a*c*e
)/Sqrt[b^2 - 4*a*c])*ArcTan[(1 - (2*2^(1/3)*c^(1/3)*x)/(b + Sqrt[b^2 - 4*a*c])^(
1/3))/Sqrt[3]])/(2^(1/3)*Sqrt[3]*c^(4/3)*(b + Sqrt[b^2 - 4*a*c])^(2/3)) + ((c*d
- b*e - (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b - Sqrt[b^2 - 4*a*c])
^(1/3) + 2^(1/3)*c^(1/3)*x])/(3*2^(1/3)*c^(4/3)*(b - Sqrt[b^2 - 4*a*c])^(2/3)) +
 ((c*d - b*e + (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b + Sqrt[b^2 -
4*a*c])^(1/3) + 2^(1/3)*c^(1/3)*x])/(3*2^(1/3)*c^(4/3)*(b + Sqrt[b^2 - 4*a*c])^(
2/3)) - ((c*d - b*e - (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b - Sqrt
[b^2 - 4*a*c])^(2/3) - 2^(1/3)*c^(1/3)*(b - Sqrt[b^2 - 4*a*c])^(1/3)*x + 2^(2/3)
*c^(2/3)*x^2])/(6*2^(1/3)*c^(4/3)*(b - Sqrt[b^2 - 4*a*c])^(2/3)) - ((c*d - b*e +
 (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b + Sqrt[b^2 - 4*a*c])^(2/3)
- 2^(1/3)*c^(1/3)*(b + Sqrt[b^2 - 4*a*c])^(1/3)*x + 2^(2/3)*c^(2/3)*x^2])/(6*2^(
1/3)*c^(4/3)*(b + Sqrt[b^2 - 4*a*c])^(2/3))

_______________________________________________________________________________________

Rubi [A]  time = 3.44774, antiderivative size = 718, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 8, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.32 \[ -\frac{\left (-\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{b-\sqrt{b^2-4 a c}}+\left (b-\sqrt{b^2-4 a c}\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{\sqrt{b^2-4 a c}+b}+\left (\sqrt{b^2-4 a c}+b\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{\left (-\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (\sqrt [3]{b-\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \log \left (\sqrt [3]{\sqrt{b^2-4 a c}+b}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}-\frac{\left (-\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b-\sqrt{b^2-4 a c}}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (\frac{2 a c e+b^2 (-e)+b c d}{\sqrt{b^2-4 a c}}-b e+c d\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{\sqrt{b^2-4 a c}+b}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{e x}{c} \]

Antiderivative was successfully verified.

[In]  Int[(x^3*(d + e*x^3))/(a + b*x^3 + c*x^6),x]

[Out]

(e*x)/c - ((c*d - b*e - (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*ArcTan[(1 -
 (2*2^(1/3)*c^(1/3)*x)/(b - Sqrt[b^2 - 4*a*c])^(1/3))/Sqrt[3]])/(2^(1/3)*Sqrt[3]
*c^(4/3)*(b - Sqrt[b^2 - 4*a*c])^(2/3)) - ((c*d - b*e + (b*c*d - b^2*e + 2*a*c*e
)/Sqrt[b^2 - 4*a*c])*ArcTan[(1 - (2*2^(1/3)*c^(1/3)*x)/(b + Sqrt[b^2 - 4*a*c])^(
1/3))/Sqrt[3]])/(2^(1/3)*Sqrt[3]*c^(4/3)*(b + Sqrt[b^2 - 4*a*c])^(2/3)) + ((c*d
- b*e - (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b - Sqrt[b^2 - 4*a*c])
^(1/3) + 2^(1/3)*c^(1/3)*x])/(3*2^(1/3)*c^(4/3)*(b - Sqrt[b^2 - 4*a*c])^(2/3)) +
 ((c*d - b*e + (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b + Sqrt[b^2 -
4*a*c])^(1/3) + 2^(1/3)*c^(1/3)*x])/(3*2^(1/3)*c^(4/3)*(b + Sqrt[b^2 - 4*a*c])^(
2/3)) - ((c*d - b*e - (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b - Sqrt
[b^2 - 4*a*c])^(2/3) - 2^(1/3)*c^(1/3)*(b - Sqrt[b^2 - 4*a*c])^(1/3)*x + 2^(2/3)
*c^(2/3)*x^2])/(6*2^(1/3)*c^(4/3)*(b - Sqrt[b^2 - 4*a*c])^(2/3)) - ((c*d - b*e +
 (b*c*d - b^2*e + 2*a*c*e)/Sqrt[b^2 - 4*a*c])*Log[(b + Sqrt[b^2 - 4*a*c])^(2/3)
- 2^(1/3)*c^(1/3)*(b + Sqrt[b^2 - 4*a*c])^(1/3)*x + 2^(2/3)*c^(2/3)*x^2])/(6*2^(
1/3)*c^(4/3)*(b + Sqrt[b^2 - 4*a*c])^(2/3))

_______________________________________________________________________________________

Rubi in Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**3*(e*x**3+d)/(c*x**6+b*x**3+a),x)

[Out]

Timed out

_______________________________________________________________________________________

Mathematica [C]  time = 0.0818609, size = 88, normalized size = 0.12 \[ \frac{e x}{c}-\frac{\text{RootSum}\left [\text{$\#$1}^6 c+\text{$\#$1}^3 b+a\&,\frac{\text{$\#$1}^3 b e \log (x-\text{$\#$1})+\text{$\#$1}^3 (-c) d \log (x-\text{$\#$1})+a e \log (x-\text{$\#$1})}{2 \text{$\#$1}^5 c+\text{$\#$1}^2 b}\&\right ]}{3 c} \]

Antiderivative was successfully verified.

[In]  Integrate[(x^3*(d + e*x^3))/(a + b*x^3 + c*x^6),x]

[Out]

(e*x)/c - RootSum[a + b*#1^3 + c*#1^6 & , (a*e*Log[x - #1] - c*d*Log[x - #1]*#1^
3 + b*e*Log[x - #1]*#1^3)/(b*#1^2 + 2*c*#1^5) & ]/(3*c)

_______________________________________________________________________________________

Maple [C]  time = 0.007, size = 67, normalized size = 0.1 \[{\frac{ex}{c}}+{\frac{1}{3\,c}\sum _{{\it \_R}={\it RootOf} \left ({{\it \_Z}}^{6}c+{{\it \_Z}}^{3}b+a \right ) }{\frac{ \left ( \left ( -be+cd \right ){{\it \_R}}^{3}-ae \right ) \ln \left ( x-{\it \_R} \right ) }{2\,{{\it \_R}}^{5}c+{{\it \_R}}^{2}b}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^3*(e*x^3+d)/(c*x^6+b*x^3+a),x)

[Out]

e*x/c+1/3/c*sum(((-b*e+c*d)*_R^3-a*e)/(2*_R^5*c+_R^2*b)*ln(x-_R),_R=RootOf(_Z^6*
c+_Z^3*b+a))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \frac{e x}{c} - \frac{-\int \frac{{\left (c d - b e\right )} x^{3} - a e}{c x^{6} + b x^{3} + a}\,{d x}}{c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^3 + d)*x^3/(c*x^6 + b*x^3 + a),x, algorithm="maxima")

[Out]

e*x/c - integrate(-((c*d - b*e)*x^3 - a*e)/(c*x^6 + b*x^3 + a), x)/c

_______________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^3 + d)*x^3/(c*x^6 + b*x^3 + a),x, algorithm="fricas")

[Out]

Timed out

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**3*(e*x**3+d)/(c*x**6+b*x**3+a),x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (e x^{3} + d\right )} x^{3}}{c x^{6} + b x^{3} + a}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^3 + d)*x^3/(c*x^6 + b*x^3 + a),x, algorithm="giac")

[Out]

integrate((e*x^3 + d)*x^3/(c*x^6 + b*x^3 + a), x)